Skip to content

Fix CI failures in GitHub workflows#704

Merged
novatechflow merged 2 commits intoapache:mainfrom
Prathamesh9284:fix/ci-build-fail
Mar 2, 2026
Merged

Fix CI failures in GitHub workflows#704
novatechflow merged 2 commits intoapache:mainfrom
Prathamesh9284:fix/ci-build-fail

Conversation

@Prathamesh9284
Copy link
Contributor

@Prathamesh9284 Prathamesh9284 commented Mar 1, 2026

Summary

Closes #702

Fixes the CI failure in .github/workflows/codeql.yml caused by sudo apt install -y protobuf-compiler attempting to download a removed Ubuntu package version.

Changes

  • Updated the workflow to run apt-get update before installing protobuf-compiler.
  • Switched from apt to apt-get for installation since apt-get provides a stable CLI interface recommended for CI/scripts.
  • Ensures the runner fetches the latest available package metadata before installation.
  • Changes are same in both .github/workflows/codeql.yml and .github/workflows/backend.yml

Context

The GitHub Actions runner (ubuntu-latest) attempted to install protobuf-compiler version 3.21.12-8.2ubuntu0.2, which had been removed from the Ubuntu mirrors after the release of 3.21.12-8.2ubuntu0.3.

Because the package index was not refreshed before installation, APT tried to download a version that no longer existed, resulting in 404 errors and causing the CI workflow to fail.

Running apt-get update synchronizes the package metadata with the current state of the Ubuntu repositories, ensuring that the latest available version is installed and preventing future 404 failures.

@Prathamesh9284
Copy link
Contributor Author

Hi @zkaoudi @mspruc @novatechflow ,

Could you please approve and run the CI checks for this PR?

Thank you

@Prathamesh9284 Prathamesh9284 changed the title fix: update backend workflow to ensure protobuf-compiler installation… Fix CI failures in GitHub workflows Mar 2, 2026
@Prathamesh9284
Copy link
Contributor Author

Prathamesh9284 commented Mar 2, 2026

Hi @zkaoudi @mspruc @novatechflow,

The CI checks have completed successfully and all workflows are passing now.
The protobuf installation issue is resolved in codeql.yml.

We should be good to merge this PR.

@novatechflow novatechflow merged commit b50b3d3 into apache:main Mar 2, 2026
4 checks passed
@novatechflow
Copy link
Member

Thanks, merged hot since it's blocking the other PR's

@Prathamesh9284
Copy link
Contributor Author

Glad to help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI build failing during protobuf-compiler installation

2 participants